package cn.wolfcode.transfer.util;

public enum ConsumptionStatusUtil {
    待结算("待结算",0),
    待审核("待审核",1),
    归档("归档",2),
    坏账("坏账",3)
    ;
    private String name;
    private Integer value;

    ConsumptionStatusUtil(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }
    public static String forConsumptionValus(Integer getvalue){
        ConsumptionStatusUtil[] values = ConsumptionStatusUtil.values();
        for (ConsumptionStatusUtil value:values){
            if (value.value==getvalue){
                return value.name;
            }
        }
        return null;
    }
}

